import { Empty } from "antd";
import React from "react";
import SchemaField from "../../core/SchemaField";

const PageContainer = ({ parentSchema, items }) => {
  if (!items) {
    return <Empty />;
  }
  return <div>
    {items.map((item, index) => {

      return <SchemaField index={index} sortable key={item._id} item={item} />
    })}
  </div>;
};
export default PageContainer;
